QT += quick     \
      quickcontrols2        \
      remoteobjects     \
      sql       \
      concurrent        \
      serialport    \
      charts        \
      webengine
CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Refer to the documentation for the
# deprecated API to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += QT_MESSAGELOGCONTEXT
DEFINES += QT_FORCE_ASSERTS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

VERSION = 1.0.0.0
RC_ICONS = AA_favicon.ico

TRANSLATIONS = languagePackage/SCAA_chinese.ts languagePackage/SCAA_english.ts

SOURCES += \
        ../DriverRepos/Camera/hikcamera.cpp \
        ../DriverRepos/GTMotion/gtaxis.cpp \
        ../DriverRepos/GTMotion/gtcontrolcard.cpp \
        ../DriverRepos/GTMotion/gtdi.cpp \
    ../DriverRepos/GTMotion/gtdispenser.cpp \
        ../DriverRepos/GTMotion/gtdo.cpp \
        ../DriverRepos/GTMotion/gtmotionelementfactory.cpp \
        ../DriverRepos/Graber/scgraber.cpp \
        ../DriverRepos/Graber/xfgraber.cpp \
        ../DriverRepos/LightSourceController/wordoplightsourcecontroller.cpp \
        ../DriverRepos/PACMotion/pacvcm.cpp \
    ../WorkerRepos/PressureMonitor/pressuremonitor.cpp \
        Tray/traymap.cpp \
        Workers/AACore/aacore.cpp \
        Workers/AACore/aacoreconfig.cpp \
    	Workers/AACore/aadata.cpp \
    Workers/AACore/displaythread.cpp \
    	Workers/AACore/sfrworker.cpp \
        Workers/AaHead/aahead.cpp \
        Workers/PickArm/pickarm.cpp \
        main.cpp \
        Vision/scvisionfactory.cpp \
        scaadispatcher.cpp  \

RESOURCES += qml.qrc \
    ../CommonIcons/pics.qrc \
    ../QmlComponents/qmlcomponents.qrc \
    icons.qrc \
    languagepackage.qrc


INCLUDEPATH +=  ../UtilitiesLib      \
                ../SCMotionLib      \
                ../libs/hik/Includes    \
                ../ThirdPartyLib/zmq   \

INCLUDEPATH +=  ../libs/XfGrabber/include  \
                ../libs/PacLib64bit     \
                ../libs/GtMotion_X64    \
                ../libs/eigen/eigen-eigen-5a0156e40feb
LIBS += ../libs/hik/lib/win64/MvCameraControl.lib   \
        ../SCAACoreLib/lib/SparrowCore.lib   \
        ../AdaptVisionLib/Release/AdaptVision.lib   \
        ../libs/PacLib64bit/PAC.lib   \
        ../libs/GtMotion_X64/gts.lib   \
        ../libs/XfGrabber/lib/xfccm2.lib   \


INCLUDEPATH +=   ../Utilities     \
                 ../SCMotion      \
                 ../Utilities/configManager     \
                 ../SCMotion/MotionManager      \
                 ../SCVision    \
                 ../AdaptVision     \
                 ../DriverRepos     \
                 ../libs/opencv/include   \
                 ../SCAACoreLib/include   \
                 ../libs/XfGrabber/lib   \
#                ../UtilitiesHeaders     \
#                ../SCMotionHeaders      \
#                ../UtilitiesHeaders/configManager     \
#                ../SCMotionHeaders/MotionManager    \

CONFIG(debug, debug|release){
    DESTDIR = ./Debug
    OBJECTS_DIR = ./Debug/Objs
    MOC_DIR = ./Debug/Mocs
    LIBS += ../SCMotionLib/Debug/SCMotion.lib
    LIBS += ../UtilitiesLib/Debug/utilities.lib
    LIBS += ../SCVisionLib/Debug/SCVision.lib
    LIBS += ../libs/opencv/x64/vc14/lib/opencv_world310d.lib
}else{
    DESTDIR = ./Release
    OBJECTS_DIR = ./Release/Objs
    MOC_DIR = ./Release/Mocs
    LIBS += ../SCMotionLib/Release/SCMotion.lib
    LIBS += ../UtilitiesLib/Release/utilities.lib
    LIBS += ../SCVisionLib/Release/SCVision.lib
    LIBS += ../libs/opencv/x64/vc14/lib/opencv_world310.lib
}

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    ../DriverRepos/Camera/hikcamera.h \
    ../DriverRepos/GTMotion/gtaxis.h \
    ../DriverRepos/GTMotion/gtaxisconfig.h \
    ../DriverRepos/GTMotion/gtcontrolcard.h \
    ../DriverRepos/GTMotion/gtcontrolcardconfig.h \
    ../DriverRepos/GTMotion/gtdi.h \
    ../DriverRepos/GTMotion/gtdispenser.h \
    ../DriverRepos/GTMotion/gtdo.h \
    ../DriverRepos/GTMotion/gtioconfig.h \
    ../DriverRepos/GTMotion/gtmotionelementfactory.h \
    ../DriverRepos/GTMotion/gtresulthandler.h \
    ../DriverRepos/Graber/scgraber.h \
    ../DriverRepos/Graber/xfgraber.h \
    ../DriverRepos/LightSourceController/wordoplightsourcecontroller.h \
    ../DriverRepos/PACMotion/pacvcm.h \
    ../DriverRepos/PACMotion/pacvcmconfig.h \
    ../WorkerRepos/PressureMonitor/pressuremonitor.h \
    Tray/lenstraymap.h \
    Tray/lenstraymaterialdata.h \
    Tray/materialdata.h \
    Tray/sensortraymap.h \
    Tray/sensortraymaterialdata.h \
    Tray/trayconfig.h \
    Tray/traymap.h \
    Workers/AACore/aacore.h \
    Workers/AACore/aacoreconfig.h \
    Workers/AACore/aadata.h \
    Workers/AACore/aaimage.h \
    Workers/AACore/displaythread.h \
    Workers/AACore/sfrworker.h \
    Workers/AaHead/aahead.h \
    Workers/AaHead/aaheadconfig.h \
    Workers/PickArm/pickarm.h \
    Workers/PickArm/pickarmconfig.h \
    namedefinition.h \
    Vision/scvisionfactory.h \
    scaadispatcher.h \

win32-msvc*:QMAKE_CXXFLAGS += /wd"4819"

